export const tableComponentConfig = {
  removeButton: () =>
    import('@/common/views/baseComponent/tableComp/removeButton.vue'),
};
// 供应商信息维护
export const mainform = {
  secretLevelName: {
    title: '密级',
    dataIndex: 'secretLevel',
    componentName: 'secretLevel',
    width: 80,
  },
  creditCode: {
    title: '统一社会信用代码',
    dataIndex: 'creditCode',
    width: 180,
  },
  supplierChinese: {
    title: '供方中文名称',
    dataIndex: 'supplierChinese',
    width: 130,
  },
  militaryCode: {
    title: '军工企业代号',
    dataIndex: 'militaryCode',
    width: 150,
  },
  supplierShortName: {
    title: '供方中文简称',
    dataIndex: 'supplierShortName',
    width: 130,
  },
  alias: {
    title: '别名',
    dataIndex: 'alias',
    width: 90,
  },
  effectFlagName: {
    title: '有效标识',
    dataIndex: 'effectFlagName',
    width: 90,
  },
  corporateRepresentative: {
    title: '供方法人',
    dataIndex: 'corporateRepresentative',
    width: 100,
  },
  unitNatureName: {
    title: '单位性质',
    dataIndex: 'unitNatureName',
    width: 90,
  },
  isGroupName: {
    title: '是否集团内',
    dataIndex: 'isGroupName',
    width: 110,
  },
  supplierQualifiedName: {
    title: '合格供应商',
    dataIndex: 'supplierQualifiedName',
    width: 110,
  },
  supplierProvince: {
    title: '供方所在省份/自治区',
    dataIndex: 'supplierProvince',
    width: 180,
  },
  companyRegisterLocation: {
    title: '公司注册地址',
    dataIndex: 'companyRegisterLocation',
    width: 130,
  },
  supplierDetailLocation: {
    title: '供方详细地址',
    dataIndex: 'supplierDetailLocation',
    width: 130,
  },
  contactNumber: {
    title: '联系方式',
    dataIndex: 'contactNumber',
    width: 110,
  },
  email: {
    title: '电子邮箱',
    dataIndex: 'email',
    width: 110,
  },
  supplierTax: {
    title: '供应商传真',
    dataIndex: 'supplierTax',
    width: 100,
  },
  aivCreditId: {
    title: '航空工业集团统一编码',
    dataIndex: 'aivCreditId',
    width: 120,
  },
  coverage: {
    title: '片区',
    dataIndex: 'coverage',
    width: 90,
  },
  corporateFlag: {
    title: '协同标记',
    dataIndex: 'corporateFlagName',
    width: 110,
  },
  remark: {
    title: '物资备注',
    dataIndex: 'remark',
    width: 90,
  },
  optional: {
    title: '操作',
    dataIndex: 'optional',
    slotName: 'optional',
    fixed: 'right',
    width: 100,
  },
};
export const mainformKeys = [
  'index',
  'secretLevelName',
  'creditCode',
  'supplierChinese',
  'militaryCode',
  'supplierShortName',
  'alias',
  'effectFlagName',
  'corporateRepresentative',
  'unitNatureName',
  'isGroupName',
  'supplierQualifiedName',
  'supplierProvince',
  'companyRegisterLocation',
  'supplierDetailLocation',
  'contactNumber',
  'email',
  'supplierTax',
  'aivCreditId',
  'coverage',
  'corporateFlag',
  'remark',
  'optional',
];
// 供应商银行账户信息
export const mainform1 = {
  secretLevelName: {
    title: '密级',
    dataIndex: 'secretLevelName',
  },
  accountName: {
    title: '开户行名称',
    dataIndex: 'accountName',
  },
  accountNumber: {
    title: '开会行银行账户',
    dataIndex: 'accountNumber',
  },
  createTime: {
    title: '创建时间',
    dataIndex: 'createTime',
  },
};
// 供应商银行账户信息
export const accountDataKeys = [
  'index',
  'secretLevelName',
  'accountName',
  'accountNumber',
  'createTime',
];
// 供应商联系人信息
export const mainform2 = {
  secretLevelName: {
    title: '密级',
    dataIndex: 'secretLevelName',
  },
  contacts: {
    title: '联系人',
    dataIndex: 'contacts',
  },
  deptId: {
    title: '所在部门',
    dataIndex: 'deptId',
  },
  phoneCompany: {
    title: '公司电话',
    dataIndex: 'phoneCompany',
  },
  phonePrivate: {
    title: '个人电话',
    dataIndex: 'phonePrivate',
  },
  tax: {
    title: '传真',
    dataIndex: 'tax',
  },
  email: {
    title: 'Email',
    dataIndex: 'email',
  },
  sendAddress: {
    title: '发货地址',
    dataIndex: 'sendAddress',
    // fixed: 'right',
    width: 150,
  },
};
// 供应商联系人信息
export const contactsDataKeys = [
  'index',
  'secretLevelName',
  'contacts',
  'deptId',
  'phoneCompany',
  'phonePrivate',
  'tax',
  'email',
  'sendAddress',
];
// 供应商资质信息
export const mainform3 = {
  secretLevelName: {
    title: '密级',
    dataIndex: 'secretLevelName',
  },
  qualificationCode: {
    title: '资质编号',
    dataIndex: 'qualificationCode',
  },
  qualificationName: {
    title: '资质名称',
    dataIndex: 'qualificationName',
  },
  qualificationTypeName: {
    title: '资质类型',
    dataIndex: 'qualificationTypeName',
  },
  qualificationLevelName: {
    title: '资质等级',
    dataIndex: 'qualificationLevelName',
  },
  licenseUnit: {
    title: '发证单位',
    dataIndex: 'licenseUnit',
  },
  licenseDate: {
    title: '发证日期',
    dataIndex: 'licenseDate',
  },
  validStartDate: {
    title: '有效开始日期',
    dataIndex: 'validStartDate',
  },
  validEndDate: {
    title: '有效结束日期',
    dataIndex: 'validEndDate',
  },
};
// 供应商资质信息
export const aptitudeDataeys = [
  'index',
  'secretLevelName',
  'qualificationCode',
  'qualificationName',
  'qualificationTypeName',
  'qualificationLevelName',
  'licenseUnit',
  'licenseDate',
  'validStartDate',
  'validEndDate',
];
// 货源供应商信息定义主表
export const mainform4Keys = [
  'index',
  'secretLevelName',
  'supplierCode',
  'supplierName',
  'materialCode',
  'materialName',
  'brandCode',
  'standards',
  'technicalConditions',
  'uniqueSupplier',
  'effectiveContractId',
  'operate',
];
export const mainform4 = {
  secretLevelName: {
    title: '密级',
    dataIndex: 'secretLevel',
    componentName: 'secretLevel',
    width: 90,
  },
  supplierCode: {
    title: '供应商编码',
    dataIndex: 'supplierCode',
    width: 90,
  },
  supplierName: {
    title: '供应商名称',
    dataIndex: 'supplierName',
    width: 100,
  },
  materialCode: {
    title: '物料编码',
    dataIndex: 'materialCode',
    width: 100,
  },
  materialName: {
    title: '物料名称',
    dataIndex: 'materialName',
    width: 90,
  },
  brandCode: {
    title: '牌号',
    dataIndex: 'brandCode',
    width: 90,
  },
  standards: {
    title: '规格',
    dataIndex: 'standards',
    width: 90,
  },
  technicalConditions: {
    title: '技术条件',
    dataIndex: 'technicalConditions',
    width: 90,
  },
  uniqueSupplier: {
    title: '唯一固定供应商标识',
    dataIndex: 'uniqueSupplier',
    width: 120,
  },
  effectiveContractId: {
    title: '有效商务合同号',
    dataIndex: 'effectiveContractId',
    width: 150,
  },
  operate: {
    title: '操作',
    slotName: 'operate',
    fixed: 'right',
    dataIndex: 'operate',
  },
};
// 供应商信息定子主表
export const mainform5Keys = ['index', 'secretLevelName', 'contractCode'];
export const mainform5 = {
  secretLevelName: {
    title: '密级',
    dataIndex: 'secretLevel',
    componentName: 'secretLevel',
    fixed: 'left',
  },
  contractCode: {
    title: '商务合同编号',
    dataIndex: 'contractCode',
  },
};
